import { OperateType } from "@type/types";
import { defineStore } from "pinia";

/**窗口状态 */
export const useWinStateStore = defineStore("winState", () => {
  const winState = ref<OperateType>(OperateType.Normal);
  // 设置窗口状态
  const setWinState = (type: OperateType) => {
    winState.value = type;
  };
  return {
    winState,
    setWinState,
  };
});
